package com.book.config;

import com.book.pojo.Book;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.Optional;

public interface  BookRepository extends ElasticsearchRepository<Book, String> {

    Iterable<Book> findByName(String name);
}
